import request from '@/utils/request'

// 查询VS列表
export function listVs(query) {
  return request({
    url: '/system/vs/list',
    method: 'get',
    params: query
  })
}

// 查询VS详细
export function getVs(boxId) {
  return request({
    url: '/system/vs/' + boxId,
    method: 'get'
  })
}

// 新增VS
export function addVs(data) {
  return request({
    url: '/system/vs',
    method: 'post',
    data: data
  })
}

// 修改VS
export function updateVs(data) {
  return request({
    url: '/system/vs',
    method: 'put',
    data: data
  })
}

// 删除VS
export function delVs(boxId) {
  return request({
    url: '/system/vs/' + boxId,
    method: 'delete'
  })
}
